import time
from multiprocessing import Process

def get_request(url):
    print(f"正在请求url:{url},耗时2秒")
    time.sleep(2)
    print(f"请求完成url:{url}")

if __name__ == "__main__":
    
    starttime = time.time()
    p = Process(target=get_request,args=("www.baidu.com",))
    p.daemon = True
    p.start()
    print("主进程")
  




